﻿@model  PagingDataSet<User>
@{
    Dictionary<long, IEnumerable<string>> schoolNameDic = ViewData["schoolNameDic"] as Dictionary<long, IEnumerable<string>>;
}
 
@foreach (var user in Model)
{
    <li class="tn-list-item tnui-user-id" data-user-id="@user.UserId">
        <div class="tn-inner tn-border-gray tn-helper-clearfix">
            <div class="tn-list-item-area-left">
                @Html.ShowUserAvatar(user, AvatarSizeType.Small, false, HyperLinkTarget._blank)
            </div>
            <div class="tn-list-item-area-main">
                <div class="tn-list-item-row tn-list-item-heading">
                    @Html.Link(user.DisplayName, SiteUrls.Instance().SpaceHome(user.UserName), user.DisplayName, new { @class = "tn-user-name" }, HyperLinkTarget._blank)
                </div>
                <div class="tn-list-item-row tn-same">
                    @{
                        IEnumerable<string> schools = schoolNameDic[user.UserId];
                    }
                    共同毕业于：
                    @foreach (string school in schools)
                    {
                    <a href="@SiteUrls.Instance().UserSearch(school, UserSearchRange.SCHOOL)" target="_blank">@school</a>
                    }
                </div>
            </div>
        </div>
    </li>
}
@Html.Hidden("pageCount", @Model.PageCount)